﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.snowflake
{
	// Token: 0x020000F1 RID: 241
	public class TCreateResourceMonitorStmt : TCustomSqlStatement
	{
		// Token: 0x06000823 RID: 2083 RVA: 0x003019BD File Offset: 0x002FFBBD
		public void setResourceMonitorName(TObjectName resourceMonitorName)
		{
			this.resourceMonitorName = resourceMonitorName;
		}

		// Token: 0x06000824 RID: 2084 RVA: 0x003019C6 File Offset: 0x002FFBC6
		public TObjectName getResourceMonitorName()
		{
			return this.resourceMonitorName;
		}

		// Token: 0x06000825 RID: 2085 RVA: 0x003019CE File Offset: 0x002FFBCE
		public TCreateResourceMonitorStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstCreateResourceMonitor;
		}

		// Token: 0x06000826 RID: 2086 RVA: 0x003019E4 File Offset: 0x002FFBE4
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.resourceMonitorName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x06000827 RID: 2087 RVA: 0x00301A21 File Offset: 0x002FFC21
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000828 RID: 2088 RVA: 0x00301A31 File Offset: 0x002FFC31
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001202 RID: 4610
		private TObjectName resourceMonitorName;
	}
}
